package com.biz.primus.ms.member.dao.ro;

import com.biz.primus.base.redis.annotation.FieldSortedSet;
import com.biz.primus.base.redis.annotation.Ro;
import com.biz.primus.base.redis.annotation.RoSortedSet;
import com.biz.primus.base.redis.bean.BaseRedisObject;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会员密保问题
 *
 * @author jun.liu
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Ro(key = "MemberSecretQuestionRo")
@RoSortedSet(key = "list", score = "createTimestamp")
public class MemberSecretQuestionRo extends BaseRedisObject<Long>
{

    /**
     * 关联会员详情Member对象
     */
    @FieldSortedSet(score = "createTimestamp", key = "memberId")
    private Long memberId;

    /**
     * 问题
     */
    private String question;

    /**
     * 答案
     */
    private String answer;

}
